package com.sxx.commons.constant;

/**订单模块常量
 * @Auther: sunxx
 * @Date: 2024/9/8 - 09 - 08 - 15:26
 * @Description: com.sxx.commons.constant
 * @version: 1.0
 */
public class OrderConstant {
    public static final String ORDER_TOKEN_PERFIX = "order:token";
    //订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
    public enum OrderStatusEnum{
        FOR_THE_PAYMENT(0,"待付款")
        ,TO_SEND_GOODS(1,"待发货")
        ,HAS_BEEN_SHIPPED(2,"已发货")
        ,HAS_BEEN_COMPLETED(3,"已完成")
        ,CLOSED(4,"已关闭")
        ,INVALID_ORDERS(5,"无效订单");
        private int code;
        private String msg;
        OrderStatusEnum(int code,String msg){
            this.code = code;
            this.msg = msg;
        }
        public int getCode() {
            return code;
        }
        public String getMsg() {
            return msg;
        }
    }


}
